package com.niiwoo.civet.user.dao.mapper;

import com.niiwoo.civet.user.dao.entity.UserForbidInfo;
import com.niiwoo.civet.user.enums.UserForbidTypeEnum;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface UserForbidInfoMapperExt extends UserForbidInfoMapper {
    List<UserForbidInfo> queryUcForbidInfo(Map<String, Object> params);

    /**
     * 查询一个有效的行为禁止数据
     * @param userId
     * @param userForbidTypeEnum
     * @param queryDate
     * @return
     */
    UserForbidInfo queryOneValidUcForbidInfo(@Param("userId") String userId, @Param("userForbidTypeEnum") UserForbidTypeEnum userForbidTypeEnum,@Param("queryDate") Date queryDate);
}